Open
Conversation
Author
Contributor
Plug-in address: https://github.com/EdgerHao/pandoc-live-preview |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
这是一个 Obsidian 插件,可为 Pandoc 的引文和交叉引用提供实时预览。它专门针对PaperBell的学术写作工作流程进行了优化。
✨ 特点
实时渲染:
在实时预览模式下,立即转换@fig:id为可读标签,如图1(图 1)或表 1 (表 1)。
🔍双向审计与管理(新增!):
侧边栏视图:一个专门用于列出所有图表的面板。单击功能区图标或使用命令即可打开。
错误检测:
⛔ 失效引用:如果缺少 ID,则以红色@fig:xxx突出显示引用 ( ) 。
⚠️ 未使用的定义:如果已定义但从未被引用,则以橙色突出显示标题。
{#fig:2025...}:。
❌ 未定义图像{#fig:xxx}:列出侧边栏中缺少标签的图像。
🖼️ 自动图片上传(PicGo):
粘贴图片后,它会自动上传到您的PicGo 服务器。
自动添加唯一ID
上传成功后可以选择删除本地文件,以保持您的存储库干净。
🎨视觉大师:
自定义所有内容:设置标题和引文的颜色、粗体和对齐方式(居中/左对齐)。
定位滑块:使用双滑块(顶部偏移/底部间距)微调字幕的垂直位置,以完美适应任何 Obsidian 主题。
📐 智能布局与间隙控制:
Pandoc 兼容:自动\n\n在图像周围添加必要的换行符(),以便正确导出为 Pandoc。
视觉上紧凑:强制隐藏 Obsidian 预览中的这些额外换行符,以防止出现难看的大间隙。
⚡ 智能自动补全:输入文字@即可触发建议菜单。支持( @fig:id )带正确间距的格式。
交互式编辑:点击渲染的标签(例如,图1)来编辑源代码。